2 #ifndef FRAMELIB_INFO_H 3 #define FRAMELIB_INFO_H 17 const char *
getInfo(
const char *verboseStr,
const char *briefStr,
bool verbose)
19 const char *outStr = verbose ? verboseStr : briefStr;
24 std::string
getInfo(
const char *verboseStr,
const char *briefStr,
unsigned long idx,
bool verbose)
27 std::ostringstream idxStr;
31 info =
getInfo(verboseStr, briefStr, verbose);
33 for (
size_t pos = info.find(
"#", 0); pos != std::string::npos; pos = info.find(
"#", pos + 1))
34 info.replace(pos, 1, idxStr.str());
39 std::string
getInfo(
const char *verboseStr,
const char *briefStr,
const char *replaceStr,
bool verbose)
42 getInfo(verboseStr, briefStr, verbose);
44 for (
size_t pos = info.find(
"#", 0); pos != std::string::npos; pos = info.find(
"#", pos + 1))
45 info.replace(pos, 1, replaceStr);
std::string getInfo(const char *verboseStr, const char *briefStr, unsigned long idx, bool verbose)
Definition: FrameLib_Info.h:24
std::string getInfo(const char *verboseStr, const char *briefStr, const char *replaceStr, bool verbose)
Definition: FrameLib_Info.h:39
const char * getInfo(const char *verboseStr, const char *briefStr, bool verbose)
Definition: FrameLib_Info.h:17
Definition: FrameLib_Info.h:12